package com.dao;

import java.util.List;
import java.util.Map;

import com.bean.Bargain;
import com.bean.Marketing;

public interface BargainMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Bargain record);

    int insertSelective(Bargain record);

    Bargain selectByPrimaryKey(Integer id);
   
    Bargain selectBymaketingid(Integer maketingid);
    
    int updateByPrimaryKeySelective(Bargain record);

    int updateByPrimaryKeyWithBLOBs(Bargain record);

    int updateByPrimaryKey(Bargain record);
    
    List<Bargain> selectAll();
    List<Bargain> selectAllByUserid(Integer userid);
   
    
    List<Bargain> selectAllcnameuname(Map map);
   List<Bargain> selectAllByUseridcnameuname(Map map);
    
    
   
   Bargain selectByPrimaryKeyduo(Integer id);
}